package cn.edu.scau.cmi.lixiaoyuan.Singleton;

public class Chairman {
      private static Chairman instance;
      private String name;
      private Chairman(String name) {
    	  this.name = name ;
      }
      public static Chairman getSingleInstance(String name) {
    	  if(instance==null&&!name.equals(null))
    	        instance = new Chairman(name);
		return instance;
      }
      
      
      public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public static Chairman getMultipleInstance(String name) {
    	  Chairman president = new Chairman(name);
    	  return president;
      }
}
